package com.tinem.platform.module.pojo.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className UserInfo
 * @description TODO
 * @site
 * @company
 * @create 2021/12/22 17:37:12
 */
@Data
@ApiModel
public class UserInfo {

    @ApiModelProperty(name = "id", value = "用户id",required = true)
    private String id;

    @ApiModelProperty(name = "uuid", value = "用户id的映射",required = true)
    private String uuid;

    @ApiModelProperty(name = "name", value = "用户姓名",required = true)
    private String name;

    @ApiModelProperty(name = "nickName", value = "用户昵称",required = true)
    private String nickName;

    @ApiModelProperty(name = "headImage", value = "头像",required = true)
    private String headImage;

    @ApiModelProperty(name = "sex", value = "性别",required = true)
    private com.tinem.platform.module.pojo.enums.rbac.GenderEnum sex;

    @ApiModelProperty(name = "account", value = "账户",required = false)
    private String account;

    @ApiModelProperty(name = "countryMobileCode", value = "手机号国家代码",required = true)
    private String countryMobileCode;

    @ApiModelProperty(name = "mobile", value = "手机号",required = false)
    private String mobile;

    @ApiModelProperty(name = "email", value = "邮箱",required = false)
    private String email;

    @ApiModelProperty(name = "expiredDate", value = "用户到期日",required = true)
    private Date expiredDate;

    @ApiModelProperty(name = "lockedDate", value = "锁定时间",required = true)
    private Date lockedDate;

    @ApiModelProperty(name = "enabled", value = "用户是否启用",required = true)
    private com.tinem.platform.module.pojo.enums.common.Enabled enabled;

    @ApiModelProperty(name = "password", value = "密码",required = true)
    private String password;

    @ApiModelProperty(name = "passwordErrorNumber", value = "密码错误次数",required = true)
    private Integer passwordErrorNumber;

    @ApiModelProperty(name = "passwordErrorTime", value = "密码错误时间",required = true)
    private Date passwordErrorTime;

    @ApiModelProperty(name = "passwordExpired", value = "密码到期日",required = true)
    private Date passwordExpired;

    @ApiModelProperty(name = "revision", value = "乐观锁",required = false)
    private Integer revision;

    @ApiModelProperty(name = "createdBy", value = "创建人",required = false)
    private String createdBy;

    @ApiModelProperty(name = "createdTime", value = "创建时间",required = false)
    private Date createdTime;

    @ApiModelProperty(name = "updatedBy", value = "更新人",required = false)
    private String updatedBy;

    @ApiModelProperty(name = "updatedTime", value = "更新时间",required = false)
    private Date updatedTime;

    public String ss(){
        return "sb";
    }
}
